import { Link } from 'react-router-dom';
import { connect } from 'dva';
import Bar from '../common/bar';

const Page2 = ({ page2 }) => {
    return <div>
        <Bar></Bar>
        <p>{page2.text}</p>
        <Link to="/"><p>Home</p></Link>
        <br/>
        <Link to="/page1"><p>Page 1</p></Link>
    </div>
}

export default connect(({ page2 }) => ({ page2 }))(Page2);